import { defineStore } from "pinia";
import { reactive } from "vue";
export const useGeyaoStore = defineStore("counter", ()=>{

  var state = reactive({
    name: 'geyao',
    age: 18
  })
  function increment(){
    state.age++
  }
  return {
    state,
    increment
  }
  // state(){
  //   return { name: 'geyao',age:18 };
  // }
  // ,
  // actions: {
  //   increment() {
  //     this.age++;
  //   },
  // },
  // getters: {
  //   doubleCount: (state) => state.age * 2,
  // },
})